<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogArticleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('log_article', function (Blueprint $table) {
            $table->increments('id');
            $table->string('ip',128);
            $table->bigInteger('admin_id');
            $table->longText('now_data');
            $table->bigInteger('time');
            $table->string('title',128);
            $table->string('model_name',128);
            $table->longText('change_field');
            $table->timestamps();

            $table->engine = 'InnoDB';
            $table->charset = 'utf8';
            $table->collation = 'utf8_unicode_ci';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('log_article');
    }
}
